Package slides.move

Source Code of slides.move.AsposeMoveSlides

package slides.move;

import com.aspose.slides.ISlide;
import com.aspose.slides.ISlideCollection;
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
import com.aspose.slides.Slide;

public class AsposeMoveSlides
{
  public static void main(String[] args)
  {
    //Instantiate a Presentation object that represents a PPT file
    Presentation pres = new Presentation("data/presentation.ppt");
       
    //Accessing a slide using its slide position
    ISlide slide = pres.getSlides().get_Item(0);
   
    //Change the position of the selected slide
    slide.setSlideNumber(2);

    //Writing the presentation as a PPT file
    pres.save("data/Aspose_ReOrdered_Slides.ppt", SaveFormat.Ppt);
    System.out.println("Slides ReOrdered Successfuly.");
  }
}
TOP

Related Classes of slides.move.AsposeMoveSlides

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.